(Coding Conventions): Mention naming conventions for hooks.
authorLute Kamstra <lute@gnu.org>
Mon, 6 Oct 2003 08:26:26 +0000 (08:26 +0000)
committerLute Kamstra <lute@gnu.org>
Mon, 6 Oct 2003 08:26:26 +0000 (08:26 +0000)
lispref/tips.texi

index d769fca581d316437383befff3f6d333d30eaed7..d07fa1b3712a8c15e328e00d44902e0ef70903d7 100644 (file)
@@ -125,6 +125,12 @@ add @samp{-p}.  Examples are @code{framep} and @code{frame-live-p}.
 If a user option variable records a true-or-false condition, give it a
 name that ends in @samp{-flag}.
 
+@item
+If the purpose of a variable is to store a single function, give it a
+name that ends in @samp{-function}.  If the purpose of a variable is
+to store a list of functions (i.e., the variable is a hook), please
+follow the naming conventions for hooks.  @xref{Hooks}.
+
 @item
 @cindex reserved keys
 @cindex keys, reserved